package org.hydrakyoufeng.stuplatform.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliyunConfig {
    @Data
    @ToString
    public class AliyunProperties{
        private String accessKeyId;

        private String accessKeySecret;

    }

    /**
     * 获取一个阿里云参数对象
     * @return
     */
    @Bean
    @ConfigurationProperties(prefix = "aliyun")
    public AliyunConfig.AliyunProperties aliyunProperties(){
        return new AliyunConfig.AliyunProperties();
    }

}
